import request from "@/router/axios";
import serviceList from "@/config/serviceList";
import { baseURL } from "@/api/common";

const { naoai } = serviceList

// 产品列表
export const getList = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/listAllSaaSProduct`,
    method: 'post',
    data
  })
}

// 新增或编辑接口
export const addOrUpdate = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/saveOrUpdateSaaSProduct`,
    method: 'post',
    data
  })
}
// 删除产品接口
export const remove = (data) => {
  return request({
    url: `${baseURL}api/${naoai}/saaSProduct/deleteSaaSProductById`,
    method: 'post',
    data
  })
}